package com.yimiyisu.contract_cust.constant;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;

public interface IText_CSS {
    String richText= """
            .a-richtext {
                outline: none;
                cursor: text;
                position: relative;
                line-height: 26px;
                font-size: 14px;
                background: transparent;
                word-wrap: break-word;
            
                .ml-2 {
                    margin: 0 0 20px 20px;
                }
            
                a.selected {
                    background: var(--a-color-primary-light-3);
                }
            
                img {
                    cursor: pointer;
                    max-width: 80%;
                }
            
                img.selected {
                    box-shadow: 0 0 0 4px var(--a-border-color);
                }
            
                &> :first-child {
                    margin-top: 0 !important;
                }
            
                a {
                    color: var(--a-color-primary);
                    text-decoration: none;
                    word-break: break-all;
                }
            
                a:visited {
                    color: var(--a-color-primary-light-3);
                }
            
                a:hover {
                    color: var(--a-color-primary-light-3);
                    outline: 0;
                }
            
                a:active {
                    outline: 0;
                    color: var(--a-color-primary-dark-2);
                }
            
                h1,
                h2,
                h3,
                h4,
                h5,
                h6 {
                    color: var(--a-text-color-primary);
                }
            
                h1,
                h2 {
                    padding-bottom: 10px;
                    // border-bottom: 1px solid var(--a-border-color-lighter);
                }
            
                u {
                    text-decoration: underline;
                }
            
                del {
                    text-decoration: line-through;
                }
            
                .double-underline {
                    text-decoration: underline double;
                }
            
                .wave-underline {
                    text-decoration: underline wavy;
                }
            
                h1 {
                    font-size: 24px;
                    text-align: center;
                    margin: 30px 0 30px;
                }
            
                h2 {
                    font-size: 20px;
                    margin: 14px 0 20px;
                }
            
                h3 {
                    font-size: 18px;
                    margin: 12px 0 14px;
                }
            
                h4 {
                    font-size: 16px;
                    margin: 10px 0 10px;
                }
            
                h5 {
                    font-size: 14px;
                    margin: 0;
                }
            
                h6 {
                    font-size: 12px;
                }
            
                p,
                div {
                    word-wrap: break-word;
                    margin: 0;
                }
            
                b,
                strong {
                    font-weight: bold;
                }
            
                i,
                em {
                    font-style: italic;
                }
            
                u {
                    text-decoration: underline;
                }
            
                strike,
                del {
                    text-decoration: line-through;
                }
            
                ul,
                ol {
                    list-style: disc outside none;
                    margin: 15px 0;
                    padding: 0 0 0 30px;
            
                    li {
                        list-style-type: inherit;
                    }
                }
            
                ul ul,
                ul ol,
                ol ul,
                ol ol {
                    padding-left: 30px;
                }
            
                ul ul,
                ol ul {
                    list-style: circle outside none;
                }
            
                ul ul ul,
                ol ul ul {
                    list-style: square outside none;
                }
            
                ol {
                    list-style: decimal;
                }
            
                .f8pt {
                    font-size: 11px;
                }
            
                .f9pt {
                    font-size: 12px;
                }
            
                .f10pt {
                    font-size: 13px;
                }
            
                .f11pt {
                    font-size: 15px;
                }
            
                .f12pt {
                    font-size: 16px;
                }
            
                .f14pt {
                    font-size: 19px;
                }
            
                .f16pt {
                    font-size: 21px;
                }
            
                .f18pt {
                    font-size: 24px;
                }
            
                .f20pt {
                    font-size: 27px;
                }
            
                .f22pt {
                    font-size: 29px;
                }
            
                .f24pt {
                    font-size: 3px;
                }
            
                .f28pt {
                    font-size: 37px;
                }
            
                .f32pt {
                    font-size: 43px;
                }
            
                .f36pt {
                    font-size: 48px;
                }
            
                blockquote {
                    border-left: 6px solid var(--a-border-color);
                    color: var(--a-text-color-secondary);
                    padding-left: 6px;
                    margin: 15px 0 15px 0;
                }
            
                blockquote> :first-child {
                    margin-top: 0;
                }
            
                code {
                    display: inline-block;
                    padding: 0 4px;
                    margin: 0 5px;
                    background: var(--a-fill-color-lighter);
                    border-radius: 3px;
                    font-size: 13px;
                    font-family: 'monaco', 'Consolas', "Liberation Mono", Courier, monospace;
                    word-break: break-all;
                    word-wrap: break-word;
                }
            
                pre {
                    padding: 10px 5px 10px 10px;
                    margin: 15px 0;
                    display: block;
                    line-height: 18px;
                    border-radius: 3px;
                    font-size: 13px;
                    font-family: 'monaco', 'Consolas', "Liberation Mono", Courier, monospace;
                    white-space: pre;
                    color: var(--a-text-color-secondary);
                    border-right: 3px solid var(--a-border-color-lighter);
                    word-wrap: normal;
                    overflow-x: auto;
                }
            
                pre code {
                    display: block;
                    padding: 0;
                    margin: 0;
                    background: none;
                    border-radius: 0;
                }
            
                hr {
                    display: block;
                    height: 0px;
                    border: 0;
                    border-top: 1px solid var(--a-border-color);
                    margin: 15px 0;
                    padding: 0;
                }
            
                table {
                    width: 100%;
                    table-layout: fixed;
                    border-collapse: collapse;
                    border-spacing: 0;
                    margin: 15px 0;
                }
            
                table thead {
                    background-color: var(--a-fill-color-extra-light);
                }
            
                table td,
                table th {
                    min-width: 40px;
                    height: 30px;
                    border: 1px solid var(--a-border-color-lighter);
                    vertical-align: top;
                    padding: 2px 4px;
                    text-align: left;
                    box-sizing: border-box;
                }
            
                table td.active,
                table th.active {
                    background-color: var(--a-fill-color-light);
                }
            
                img {
                    margin: 0 5px;
                    vertical-align: middle;
                }
            }
            """;
    String comonent= """
            .a-richtext {
                outline: none;
                cursor: text;
                position: relative;
                line-height: 26px;
                font-size: 14px;
                background: transparent;
                word-wrap: break-word;
            
                .ml-2 {
                    margin: 0 0 20px 20px;
                }
            
                a.selected {
                    background: var(--a-color-primary-light-3);
                }
            
                img {
                    cursor: pointer;
                    max-width: 80%;
                }
            
                img.selected {
                    box-shadow: 0 0 0 4px var(--a-border-color);
                }
            
                &> :first-child {
                    margin-top: 0 !important;
                }
            
                a {
                    color: var(--a-color-primary);
                    text-decoration: none;
                    word-break: break-all;
                }
            
                a:visited {
                    color: var(--a-color-primary-light-3);
                }
            
                a:hover {
                    color: var(--a-color-primary-light-3);
                    outline: 0;
                }
            
                a:active {
                    outline: 0;
                    color: var(--a-color-primary-dark-2);
                }
            
                h1,
                h2,
                h3,
                h4,
                h5,
                h6 {
                    color: var(--a-text-color-primary);
                }
            
                h1,
                h2 {
                    padding-bottom: 10px;
                    // border-bottom: 1px solid var(--a-border-color-lighter);
                }
            
                u {
                    text-decoration: underline;
                }
            
                del {
                    text-decoration: line-through;
                }
            
                .double-underline {
                    text-decoration: underline double;
                }
            
                .wave-underline {
                    text-decoration: underline wavy;
                }
            
                h1 {
                    font-size: 24px;
                    text-align: center;
                    margin: 30px 0 30px;
                }
            
                h2 {
                    font-size: 20px;
                    margin: 14px 0 20px;
                }
            
                h3 {
                    font-size: 18px;
                    margin: 12px 0 14px;
                }
            
                h4 {
                    font-size: 16px;
                    margin: 10px 0 10px;
                }
            
                h5 {
                    font-size: 14px;
                    margin: 0;
                }
            
                h6 {
                    font-size: 12px;
                }
            
                p,
                div {
                    word-wrap: break-word;
                    margin: 0;
                }
            
                b,
                strong {
                    font-weight: bold;
                }
            
                i,
                em {
                    font-style: italic;
                }
            
                u {
                    text-decoration: underline;
                }
            
                strike,
                del {
                    text-decoration: line-through;
                }
            
                ul,
                ol {
                    list-style: disc outside none;
                    margin: 15px 0;
                    padding: 0 0 0 30px;
            
                    li {
                        list-style-type: inherit;
                    }
                }
            
                ul ul,
                ul ol,
                ol ul,
                ol ol {
                    padding-left: 30px;
                }
            
                ul ul,
                ol ul {
                    list-style: circle outside none;
                }
            
                ul ul ul,
                ol ul ul {
                    list-style: square outside none;
                }
            
                ol {
                    list-style: decimal;
                }
            
                .f8pt {
                    font-size: 11px;
                }
            
                .f9pt {
                    font-size: 12px;
                }
            
                .f10pt {
                    font-size: 13px;
                }
            
                .f11pt {
                    font-size: 15px;
                }
            
                .f12pt {
                    font-size: 16px;
                }
            
                .f14pt {
                    font-size: 19px;
                }
            
                .f16pt {
                    font-size: 21px;
                }
            
                .f18pt {
                    font-size: 24px;
                }
            
                .f20pt {
                    font-size: 27px;
                }
            
                .f22pt {
                    font-size: 29px;
                }
            
                .f24pt {
                    font-size: 3px;
                }
            
                .f28pt {
                    font-size: 37px;
                }
            
                .f32pt {
                    font-size: 43px;
                }
            
                .f36pt {
                    font-size: 48px;
                }
            
                blockquote {
                    border-left: 6px solid var(--a-border-color);
                    color: var(--a-text-color-secondary);
                    padding-left: 6px;
                    margin: 15px 0 15px 0;
                }
            
                blockquote> :first-child {
                    margin-top: 0;
                }
            
                code {
                    display: inline-block;
                    padding: 0 4px;
                    margin: 0 5px;
                    background: var(--a-fill-color-lighter);
                    border-radius: 3px;
                    font-size: 13px;
                    font-family: 'monaco', 'Consolas', "Liberation Mono", Courier, monospace;
                    word-break: break-all;
                    word-wrap: break-word;
                }
            
                pre {
                    padding: 10px 5px 10px 10px;
                    margin: 15px 0;
                    display: block;
                    line-height: 18px;
                    border-radius: 3px;
                    font-size: 13px;
                    font-family: 'monaco', 'Consolas', "Liberation Mono", Courier, monospace;
                    white-space: pre;
                    color: var(--a-text-color-secondary);
                    border-right: 3px solid var(--a-border-color-lighter);
                    word-wrap: normal;
                    overflow-x: auto;
                }
            
                pre code {
                    display: block;
                    padding: 0;
                    margin: 0;
                    background: none;
                    border-radius: 0;
                }
            
                hr {
                    display: block;
                    height: 0px;
                    border: 0;
                    border-top: 1px solid var(--a-border-color);
                    margin: 15px 0;
                    padding: 0;
                }
            
                table {
                    width: 100%;
                    table-layout: fixed;
                    border-collapse: collapse;
                    border-spacing: 0;
                    margin: 15px 0;
                    border: 1px solid var(--a-border-color-lighter);
                }
            
                table thead {
                    background-color: var(--a-fill-color-extra-light);
                }
            
                table td,
                table th {
                    min-width: 40px;
                    height: 30px;
                    border: 1px solid var(--a-border-color-lighter);
                    vertical-align: top;
                    padding: 2px 4px;
                    text-align: left;
                    box-sizing: border-box;
                }
            
                table td.active,
                table th.active {
                    background-color: var(--a-fill-color-light);
                }
            
                img {
                    margin: 0 5px;
                    vertical-align: middle;
                }
            }
            
            /* 合同字段样式 */
            .c-contract {
                display: inline-block;
                min-width: 40px;
                padding: 0 6px;
                margin-right: 15px;
                position: relative;
            }
            
            .c-contract .z-i {
                position: absolute;
                right: -3px;
                top: 2px;
                cursor: pointer;
                color: var(--a-color-primary);
            }
            
            .c-contract .i {
                margin-left: 4px;
            }
            
            .c-contract .i::before {
                content: "(";
                margin-right: 2px;
            }
            
            .c-contract .i::after {
                content: ")";
                margin-left: 2px;
            }
            
            /* 物料容器样式 */
            .c-material {
                margin: 20px 40px;
            }
            
            .material-table {
                text-align: center;
            }
            
            .material-table th,
            .material-table td {
                padding: 12px 15px;
                text-align: center;
                vertical-align: middle;
                word-wrap: break-word; /* 处理长内容 */
            }
            
            .material-table th {
                background-color: #f0f5ff;
                color: #2c3e50;
                font-weight: 600;
                padding: 15px;
                position: sticky;
                top: 0;
            }
            
            .c-material.ProseMirror-selectednode {
                outline: 1px dashed var(--a-color-primary);
            }
            
            /* 物料标题样式 */
            .material-label {
                text-align: center;
                font-weight: bold;
                position: relative;
            }
            
            /* 编辑按钮样式 */
            .edit-icon {
                top: 50%;
                transform: translateY(-50%);
                cursor: pointer;
                color: var(--a-color-primary);
            }
            
            .material-title {
                text-align: center;
                margin: 15px 0;
            }
            
            .material-table tr:hover {
                background-color: #f9fbfd;
            }
            """;
}
